package antLogic;

/**
 * Created by IntelliJ IDEA.
 * User: Mark the intern
 * Date: 10-Jul-2007
 * Time: 3:53:55 PM
 */
public class Event {

    Integer eventType;
    String eventName;
    Object[] parameters;
    Integer step;
    Boolean isCritical;

    public Event(int eventType,int step, Object[] parameters) {
        this.eventType = eventType;
        this.parameters = parameters;
        this.step = step;
        //TODO Lookup name
        this.eventName = "";
        isCritical = false;
        //Ideally, the event constructor should validate the parameters.
    }

    public Event(int eventType, String eventName, Object[] parameters) {
        this.eventType = eventType;
        this.parameters = parameters;
        this.eventName = eventName;
        this.step = step;
        //Ideally, the event constructor should validate the parameters.
    }

    public Integer getEventType() {
        return eventType;
    }

    public String getEventName() {
        return eventName;
    }

    public Object[] getParameters() {
        return parameters;
    }

    public int getStep() {
        return step;
    }

    public Boolean isCritical() {
        return isCritical;
    }

    public void setCritical(Boolean critical) {
        isCritical = critical;
    }

    public static Integer EMPTY = 0;
    public static Integer BORN = 1;
    public static Integer MEETOBSTACLE = 2;
}
